{% extends "dashboard/base.html" %}

{% load machine_services %}
{% block content %}
<div class="container">
<h3>{{machine.hostname}}[{{machine.id}}]</h3>
<table class="table table-bordered">
    <tr>
        <th>Hostname</th><td>{{machine.hostname}}</td>
    </tr>
    <tr>
        <th>Status</th><td>{{machine.get_status_display}}</td>
    </tr>
    <tr>
        <th>Services</th><td>{% show_services machine %}</td>
    </tr>
    <tr>
        <th>First Seen</th><td>{{ machine.created_at }}</td>
    </tr>
    <tr>
        <th>Last Seen</th><td>{{ machine.updated_at }}</td>
    </tr>
    <tr>
        <th>Load</th><td>{%show_localhost machine%}</td>
    </tr>
    <tr>
        <th>Platform</th><td>{{machine.platform}}</td>
    </tr>
    <tr>
        <th>Monit Stats</th><td>{{machine.server}}</td>
    </tr>
</table>
</div>
{% endblock %}
 
